package com.regent.central.bill.core;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

@Table(name = "central_bill_delivery")
public class Delivery {
    /**
     * 销售单ID
     */
    @Id
    private String id;

    /**
     * 老板组织ID
     */
    @Column(name = "boss_unit_id")
    private String bossUnitId;

    /**
     * 组织ID
     */
    @Column(name = "unit_id")
    private String unitId;
    /**
     * 客户ID
     */
    @Column(name = "customer_id")
    private String customerId;
    /**
     * 发货日期yyyy-MM-dd
     */
    @Column(name = "delivery_day")
    private String deliveryDay;
    /**
     * 发货编号
     */
    @Column(name = "delivery_no")
    private String deliveryNo;
    /**
     * 总发货款数
     */
    @Column(name = "style_count")
    private Integer styleCount;
    /**
     * 总发货数
     */
    @Column(name = "total_delivered")
    private BigDecimal totalDelivered;

    /**
     * 备注
     */
    private String remark;

    /**
     * 打印次数
     */
    private Integer printed;

    /**
     * 是否已作废
     */
    private Boolean canceled;

    /**
     * 发货人ID 默认是当前操作人员
     */
    @Column(name = "deliverer_id")
    private String delivererId;

    /**
     * 发货日期 可以修改
     */
    @Column(name = "date_delivered")
    private Date dateDelivered;

    /**
     * 记录版本
     */
    private Integer version;

    /**
     * 创建时间
     */
    @Column(name = "date_created")
    private Date dateCreated;

    /**
     * 创建人员
     */
    @Column(name = "user_created")
    private String userCreated;

    /**
     * 最后更新时间
     */
    @Column(name = "last_updated")
    private Date lastUpdated;

    /**
     * 最后更新人员
     */
    @Column(name = "user_updated")
    private String userUpdated;

    /**
     * 删除时间
     */
    @Column(name = "time_deleted")
    private Long timeDeleted;

    /**
     * 删除人员
     */
    @Column(name = "user_deleted")
    private String userDeleted;

    /**
     * 获取销售单ID
     *
     * @return id - 销售单ID
     */
    public String getId() {
        return id;
    }

    /**
     * 设置销售单ID
     *
     * @param id 销售单ID
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取老板组织ID
     *
     * @return boss_unit_id - 老板组织ID
     */
    public String getBossUnitId() {
        return bossUnitId;
    }

    /**
     * 设置老板组织ID
     *
     * @param bossUnitId 老板组织ID
     */
    public void setBossUnitId(String bossUnitId) {
        this.bossUnitId = bossUnitId;
    }

    /**
     * 获取组织ID
     *
     * @return unit_id - 组织ID
     */
    public String getUnitId() {
        return unitId;
    }

    /**
     * 设置组织ID
     *
     * @param unitId 组织ID
     */
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getDeliveryDay() {
        return deliveryDay;
    }

    public void setDeliveryDay(String deliveryDay) {
        this.deliveryDay = deliveryDay;
    }

    /**
     * 获取发货编号
     *
     * @return delivery_no - 发货编号
     */
    public String getDeliveryNo() {
        return deliveryNo;
    }

    /**
     * 设置发货编号
     *
     * @param deliveryNo 发货编号
     */
    public void setDeliveryNo(String deliveryNo) {
        this.deliveryNo = deliveryNo;
    }

    public Integer getStyleCount() {
        return styleCount;
    }

    public void setStyleCount(Integer styleCount) {
        this.styleCount = styleCount;
    }

    /**
     * 获取总发货数
     *
     * @return total_delivered - 总发货数
     */
    public BigDecimal getTotalDelivered() {
        return totalDelivered;
    }

    /**
     * 设置总发货数
     *
     * @param totalDelivered 总发货数
     */
    public void setTotalDelivered(BigDecimal totalDelivered) {
        this.totalDelivered = totalDelivered;
    }

    /**
     * 获取备注
     *
     * @return remark - 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 设置备注
     *
     * @param remark 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取打印次数
     *
     * @return printed - 打印次数
     */
    public Integer getPrinted() {
        return printed;
    }

    /**
     * 设置打印次数
     *
     * @param printed 打印次数
     */
    public void setPrinted(Integer printed) {
        this.printed = printed;
    }

    /**
     * 获取是否已作废
     *
     * @return canceled - 是否已作废
     */
    public Boolean getCanceled() {
        return canceled;
    }

    /**
     * 设置是否已作废
     *
     * @param canceled 是否已作废
     */
    public void setCanceled(Boolean canceled) {
        this.canceled = canceled;
    }

    /**
     * 获取发货人ID 默认是当前操作人员
     *
     * @return deliverer_id - 发货人ID 默认是当前操作人员
     */
    public String getDelivererId() {
        return delivererId;
    }

    /**
     * 设置发货人ID 默认是当前操作人员
     *
     * @param delivererId 发货人ID 默认是当前操作人员
     */
    public void setDelivererId(String delivererId) {
        this.delivererId = delivererId;
    }

    /**
     * 获取发货日期 可以修改
     *
     * @return date_delivered - 发货日期 可以修改
     */
    public Date getDateDelivered() {
        return dateDelivered;
    }

    /**
     * 设置发货日期 可以修改
     *
     * @param dateDelivered 发货日期 可以修改
     */
    public void setDateDelivered(Date dateDelivered) {
        this.dateDelivered = dateDelivered;
    }

    /**
     * 获取记录版本
     *
     * @return version - 记录版本
     */
    public Integer getVersion() {
        return version;
    }

    /**
     * 设置记录版本
     *
     * @param version 记录版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * 获取创建时间
     *
     * @return date_created - 创建时间
     */
    public Date getDateCreated() {
        return dateCreated;
    }

    /**
     * 设置创建时间
     *
     * @param dateCreated 创建时间
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    /**
     * 获取创建人员
     *
     * @return user_created - 创建人员
     */
    public String getUserCreated() {
        return userCreated;
    }

    /**
     * 设置创建人员
     *
     * @param userCreated 创建人员
     */
    public void setUserCreated(String userCreated) {
        this.userCreated = userCreated;
    }

    /**
     * 获取最后更新时间
     *
     * @return last_updated - 最后更新时间
     */
    public Date getLastUpdated() {
        return lastUpdated;
    }

    /**
     * 设置最后更新时间
     *
     * @param lastUpdated 最后更新时间
     */
    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    /**
     * 获取最后更新人员
     *
     * @return user_updated - 最后更新人员
     */
    public String getUserUpdated() {
        return userUpdated;
    }

    /**
     * 设置最后更新人员
     *
     * @param userUpdated 最后更新人员
     */
    public void setUserUpdated(String userUpdated) {
        this.userUpdated = userUpdated;
    }

    /**
     * 获取删除时间
     *
     * @return time_deleted - 删除时间
     */
    public Long getTimeDeleted() {
        return timeDeleted;
    }

    /**
     * 设置删除时间
     *
     * @param timeDeleted 删除时间
     */
    public void setTimeDeleted(Long timeDeleted) {
        this.timeDeleted = timeDeleted;
    }

    /**
     * 获取删除人员
     *
     * @return user_deleted - 删除人员
     */
    public String getUserDeleted() {
        return userDeleted;
    }

    /**
     * 设置删除人员
     *
     * @param userDeleted 删除人员
     */
    public void setUserDeleted(String userDeleted) {
        this.userDeleted = userDeleted;
    }
}